<?php
include("inc/xhead.php");
$query="update sys_tongzhi set hits=hits+1 where id=".$_GET['id'];
@sqlsrv_query($conn,$query);
	$query="select title,content,bm,left(CONVERT(varchar(16),rq,120),16),zihao from sys_tongzhi where id=".$_GET['id'];
$result=sqlsrv_query($conn,$query);
$line=sqlsrv_fetch_array($result);
	$title=$line[0];
	$content=str_replace("\\","",$line[1]);
	$name=$line[2];
	$rq=$line[3];
	$zh=$line[4];
?>
<HTML>
<HEAD>
<TITLE><?php echo $title;?></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<BODY  vLink=#000000 aLink=#000000 link=#000000 leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"> 
<div>
	<p style="font-size:  24px;text-align:  center; margin: 20px;"><?php echo $title;?></p>
	<p style="text-align:  center;"><?php echo $zh;?></p>
	<div style="border: 1px solid #ccc;width: 98%;margin: auto;height: 300px;"><?php echo $content;?></div>
	<div>
		<p style="text-align:  right;margin: 10px;"><?php echo $rq;?></p>
	</div>
</div>
</body>
</html>              
                           
            
